package com.tnt.hpit.entitys;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.tnt.hpit.services.AtlasManager;
import com.tnt.hpit.shared.Constants;

public class Ball{
	private int x, y;
	private int width, height;
	private TextureRegion soccerBall;
	private SpriteBatch sb;
	public Ball(SpriteBatch sb){
		this.sb = sb;
		soccerBall = new TextureRegion(AtlasManager.getAtlas().findRegion("soccer-ball"));
		x = Constants.SCREEN_WIDTH / 2;
		y = 100;
		width = soccerBall.getRegionWidth();
		height = soccerBall.getRegionHeight();
	}
	public void render(){
		sb.begin();
		sb.draw(soccerBall, x, y );
		sb.end();
	}
	public int getX(){
		return x;
	}
	public int getY(){
		return y;
	}
	public int getwidth(){
		return width;
	}
	public int getHeight(){
		return height;
	}
}
